<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <base href="<%=basePath%>" />
    <title>Title</title>
    <link rel="stylesheet" type="text/css" href="css/form.css"></link>
    <script type="text/javascript" src="js/jquery-1.12.4.min.js"></script>
    <script type="text/javascript" src="js/ajaxfileupload.js"></script>
    <script type="text/javascript" src="js/upload.js"></script>
</head>
<body>
<c:if test="${param.copid == 200}">
<div class="form-group">
    <img class="uploadImg" src="upload/${teacher.imgsrc}">
</div>
<input type="hidden" name="subfolder" value="scrollimg" class="subfolder">
<input type="file" class="myFile" id="myFile"  name="myFile">
<input type="button" id="upload" value="上传图片">
</c:if>
  <form action="comment/add/${param.copid}" class="test" ENCTYPE="multipart/form-data">
      <input type="text" name="coid" ><br/>
      <input type="text" name="coname"><br/>
      <input type="text" name="colevel" value="2"><br/>
      <input type="text" name="copid" value="${param.copid}"><br/>
      <input type="text" name="codesc"><br/>
      <c:if test="${param.copid == 200}">
          头像地址：<input type="text" name="codesc1" class="uploadimgsrc"><br/>
      </c:if>
      <input type="submit" type="提交" class="test">
  </form>
</body>
</html>
